package cn.wolfcode.p2p.bussness.service;

import cn.wolfcode.p2p.base.domain.Account;
import cn.wolfcode.p2p.base.query.QueryObject;
import cn.wolfcode.p2p.bussness.domain.AccountFlow;
import com.github.pagehelper.PageInfo;

import java.math.BigDecimal;

public interface IAccountFlowService {
    int save(AccountFlow accountFlow);

    AccountFlow get(Long id);

    PageInfo queryPage(QueryObject qo);

    /**
     * 账单流水
     * @param userAccount   充值用户的账户
     * @param amount        充值后的可用金额
     * @param remark        备注信息
     * @param actionType    流水类型
     */
    void createRechargeOfflineFlow(Account userAccount, BigDecimal amount, String remark, int actionType);
}
